//
//  IMINetAppDelegate.m
//  IMINet
//
//  Created by Travis on 09-8-13.
//  Copyright Exmart 2009. All rights reserved.
//

#import "AppDelegate.h"
#import "IMINetConnectionManager.h"

#import "IMINetRESTRequest.h"
#import "IMINetXML.h"
#import "IMINetTwitterEngine.h"
@implementation AppDelegate

@synthesize window;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	window=[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
	window.backgroundColor = [UIColor whiteColor];
	window.multipleTouchEnabled=YES;
    [window makeKeyAndVisible];
	
	//NSString *url;
	//url=@"http://api.xiaonei.com/restserver.do";
//	//url=@"http://andyj.be/blog/?feed=rss2";
//	IMINetRESTRequest *nr=[IMINetRESTRequest requestWithURL:[NSURL URLWithString:url]];
//	[nr setParam:@"1.0" forKey:@"v"];
//	[nr setParam:@"3497f89024a8402fa85fdb8062ef2fb0" forKey:@"api_key"];
//	
//	[nr setParam:@"auth.createToken" forKey:@"method"];
//	
//	//[nr setParam:@"c972f62e82834fd0b14ca9d376e8d592" forKey:@"auth_token"];
//	//[nr setParam:@"auth.getSession" forKey:@"method"];
//	[nr setHTTPMethod:HTTPMethodPost];
//	
//	nc=[[IMINetConnection alloc] initWithRequest:nr delegate:self];
//	
//	[cm addConnection:[nc autorelease]];
	
	//IMINetRESTRequest *nr=[IMINetRESTRequest requestWithURL:[NSURL URLWithString:url]];
	
	//nc=[[IMINetConnection alloc] initWithRequest:nr delegate:self];
	
	IMINetTwitterEngine *te=[[IMINetTwitterEngine alloc] init];
	//te.apiURL=@"api.minicloud.com.cn";
	
	te.username=@"trawor";
	te.password=@"icu4ever";
	//te.useSSL=NO;
	NSLog([te getFriends]);
}


- (void)dealloc {
    [window release];
    [super dealloc];
}



@end
